*** empty log message ***
authorFred Pierresteguy <F.Pierresteguy@frcl.bull.fr>
Fri, 18 Feb 1994 22:38:14 +0000 (22:38 +0000)
committerFred Pierresteguy <F.Pierresteguy@frcl.bull.fr>
Fri, 18 Feb 1994 22:38:14 +0000 (22:38 +0000)
lwlib/lwlib.c

index c2f2f05cba5c92e54215d6ab65d1043ee0f64131..1f858cbea3dcaa7ed18be9be317091110b6d9763 100644 (file)
@@ -113,7 +113,6 @@ safe_free_str (s)
 
 static widget_value *widget_value_free_list = 0;
 static int malloc_cpt = 0;
-static int malloc_cpt_id = 0;
 
 widget_value *
 malloc_widget_value ()
@@ -144,17 +143,12 @@ free_widget_value (wv)
   if (wv->free_list)
     abort ();
 
-  if (malloc_cpt > 20)
+  if (malloc_cpt > 25)
     {
       /* When the number of already allocated cells is too big,
         We free it.  */
-      malloc_cpt_id++;
       free (wv);
-      if (malloc_cpt_id > 20)
-       {
-         malloc_cpt_id = 0;
-         malloc_cpt = 0;
-       }
+      malloc_cpt--;
     }
   else
     {